package br.com.merks.model;

import java.math.BigDecimal;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Transient;


@Entity
@NamedQueries({
	@NamedQuery(name="answer.findByMarket",query="SELECT x FROM br.com.merks.model.MarketAnswer x WHERE x.marketId = :id")
})
public class MarketAnswer {
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long id;
	private String answer;
	
	private Long marketId;
	
	private BigDecimal startValue;
	private BigDecimal endValue;
	
	@Transient
	private Long tempId;
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getAnswer() {
		return answer;
	}
	public void setAnswer(String answer) {
		this.answer = answer;
	}
	
	public Long getMarketId() {
		return marketId;
	}
	public void setMarketId(Long marketId) {
		this.marketId = marketId;
	}
	public BigDecimal getStartValue() {
		return startValue;
	}
	public void setStartValue(BigDecimal startValue) {
		this.startValue = startValue;
	}
	public BigDecimal getEndValue() {
		return endValue;
	}
	public void setEndValue(BigDecimal endValue) {
		this.endValue = endValue;
	}
	public void setTempId(Long tempId) {
		this.tempId = tempId;
	}
	public Long getTempId() {
		return tempId;
	}
	

	
}
